package com.tempjob.common.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @author hui
 * @Date 2024/7/31 15:27
 **/
@Data
@ApiModel
public class ExcelExportModel {

    @ApiModelProperty("文件名")
    private String fileName;

    @ApiModelProperty("sheet列表")
    private List<SheetInfo> sheetInfoList;

    @Data
    @ApiModel
    public static class SheetInfo<T>{

        @ApiModelProperty("sheet名称")
        private String sheetName;

        @ApiModelProperty("类")
        private Class clazz;

        @ApiModelProperty("数据列表")
        private List<T> dataList;

    }

}
